package vistas;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;

import javax.swing.WindowConstants;
import javax.swing.SwingUtilities;


/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class VistaPrincipal extends javax.swing.JFrame {
	private JMenuBar barraMenu;
	private JMenu jMenu1;
	private JMenuItem itemRegistrar;
	private JMenuItem itemDisponibles;
	private JMenuItem itemPresentacion;
	private JMenu menuSalir;
	private JMenu menuTipo;
	private JMenu menuListar;
	private JMenuItem itemClas;
	private JMenuItem itemAdm;
	private JMenuItem jMenuItem1;
	private JMenuItem itemBuscar;
	private JMenu menuMed;

	/**
	* Auto-generated main method to display this JFrame
	*/
	public static void main(String[] args) {
		SwingUtilities.invokeLater(new Runnable() {
			public void run() {
				VistaPrincipal inst = new VistaPrincipal();
				inst.setLocationRelativeTo(null);
				inst.setVisible(true);
			}
		});
	}
	
	public VistaPrincipal() {
		super();
		initGUI();
	}
	
	private void initGUI() {
		try {
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			this.setPreferredSize(new java.awt.Dimension(500, 500));
			{
				barraMenu = new JMenuBar();
				setJMenuBar(barraMenu);
				{
					menuMed = new JMenu();
					barraMenu.add(menuMed);
					menuMed.setText("Medicamento");
					{
						itemRegistrar = new JMenuItem();
						menuMed.add(itemRegistrar);
						itemRegistrar.setText("Registrar medicamento");
					}
					{
						itemBuscar = new JMenuItem();
						menuMed.add(itemBuscar);
						itemBuscar.setText("Buscar medicamento");
						itemBuscar.setBounds(135, 19, 124, 21);
					}
				}
				{
					jMenu1 = new JMenu();
					barraMenu.add(jMenu1);
					jMenu1.setText("Consultar");
					{
						menuListar = new JMenu();
						jMenu1.add(menuListar);
						menuListar.setText("Listar medicamentos");
						menuListar.setBounds(158, 61, 158, 21);
						{
							jMenuItem1 = new JMenuItem();
							menuListar.add(jMenuItem1);
							jMenuItem1.setText("Medicamentos vencidos");
							jMenuItem1.setBounds(0, 21, 158, 21);
						}
						{
							itemDisponibles = new JMenuItem();
							menuListar.add(itemDisponibles);
							itemDisponibles.setText("Medicamentos no vencidos");
							itemDisponibles.setBounds(158, 21, 158, 21);
						}
					}
					{
						menuTipo = new JMenu();
						jMenu1.add(menuTipo);
						menuTipo.setText("Listar por tipo");
						{
							itemClas = new JMenuItem();
							menuTipo.add(itemClas);
							itemClas.setText("Por clasificacion");
							itemClas.setBounds(158, -21, 112, 21);
						}
						{
							itemAdm = new JMenuItem();
							menuTipo.add(itemAdm);
							itemAdm.setText("Por administracion");
							itemAdm.setBounds(158, -21, 112, 21);
						}
						{
							itemPresentacion = new JMenuItem();
							menuTipo.add(itemPresentacion);
							itemPresentacion.setText("Por presentacion");
							itemPresentacion.setBounds(158, -21, 112, 21);
						}
					}
				}
				{
					menuSalir = new JMenu();
					barraMenu.add(menuSalir);
					menuSalir.setText("Salir");
				}
			}
			pack();
			this.setSize(500, 500);
		} catch (Exception e) {
		    //add your error handling code here
			e.printStackTrace();
		}
	}

}
